package com.meteosurfing;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.widget.FrameLayout;

public class Completa extends Activity {

	private WebView webView;
	@Override
	public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
	setContentView(R.layout.wcompleta);

	webView = (WebView) findViewById(R.id.webview);
	webView.getSettings().setJavaScriptEnabled(true);
	webView.loadUrl("http://www.meteosurfing.com/m/app/android/index.php");

	webView.setWebViewClient(new HelloWebViewClient());

	
}

	
	
	   @Override
       protected void onPause(){
           super.onPause();

           webView.pauseTimers();
           if(isFinishing()){
               webView.loadUrl("about:blank");
               setContentView(new FrameLayout(this));
           }
       }

       @Override
       protected void onResume(){
           super.onResume();
           webView.resumeTimers();
       }
	
	
}